import React from 'react';
import {render} from 'react-dom';
import HtmlIndex from './index';
import styles from './index.module.scss';


export default class IFrame extends HtmlIndex {

  renderItem(option: any) {
    return <iframe
      src={option.src || ''}
      frameBorder={0}
      allowFullScreen={option.allowFullScreen}
      scrolling={option.scrolling}
      name={option.name}
      className={styles.chart_html_iframe}
    />
  }
}

/**
 * 折线图-配置模板
 */
const configTemp = {
  option: {
    src: '',
    scrolling: 'yes',
    allowFullScreen: true
  }
}
export {configTemp};
